import request from '../../../utils/request'

function addUnit(data) {
  return request({
    url: '/jklc/element',
    method: 'POST',
    data
  })
}

function getUnitList(params) {
  return request({
    url: '/jklc/element/getList',
    method: 'GET',
    params
  })
}
function getUnitData(params) {
  return request({
    url: '/jklc/element/getInfo',
    method: 'GET',
    params
  })
}
function setUnit(data) {
  return request({
    url: '/jklc/element',
    method: 'PUT',
    data
  })
}

function delUnit(data) {
  return request({
    url: '/jklc/element',
    method: 'DELETE',
    data
  })
}


function getInstrumentTypeLint(data) {
  return request({
    url: '/jklc/deviceType/getList',
    // url: '/jklc/device/getList',
    method: 'GET',
    data
  })
}





export {
  getUnitList,
  addUnit,
  getUnitData,
  setUnit,
  delUnit,
  getInstrumentTypeLint
}